package by.wind.drebedengi.datalayer.bean;

import com.j256.ormlite.field.DatabaseField;

public class Source  extends AbstractBean {

	public static final String ID = "id";
	public static final String PARENT_ID = "parentId";
	public static final String BUDGET_FAMILY_ID = "budgetFamilyId";
	public static final String TYPE = "type";
	public static final String NAME = "name";
	public static final String IS_HIDDEN = "isHidden";
	public static final String SORT = "sort";
	
	@DatabaseField
	private long parentId;
	@DatabaseField
	private long budgetFamilyId;
	@DatabaseField
	private long type;
	@DatabaseField
	private String name;
	@DatabaseField
	private boolean isHidden;
	@DatabaseField
	private long sort;
	
	public long getParentId() {
		return parentId;
	}
	public void setParentId(long parentId) {
		this.parentId = parentId;
	}
	public long getBudgetFamilyId() {
		return budgetFamilyId;
	}
	public void setBudgetFamilyId(long budgetFamilyId) {
		this.budgetFamilyId = budgetFamilyId;
	}
	public long getType() {
		return type;
	}
	public void setType(long type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public boolean isHidden() {
		return isHidden;
	}
	public void setHidden(boolean isHidden) {
		this.isHidden = isHidden;
	}
	public long getSort() {
		return sort;
	}
	public void setSort(long sort) {
		this.sort = sort;
	}
	
	public String toString() {
		return "Source: \n" +
				"parentId = " + parentId + "\n" +
				"budgetFamilyId = " + budgetFamilyId + "\n" +
				"type = " + type + "\n" +
				"name = " + name + "\n" +
				"isHidden = " + isHidden + "\n" + 
				"sort = " + sort;
	}
}
